/*
* @author : TF-BJ-C064
* @creation : 2014-7-17 下午6:20:31
* @description : 
*
*/

package com.base;

import org.springframework.transaction.TransactionDefinition;
import org.springframework.transaction.support.DefaultTransactionStatus;

public class TFTransactionManager extends org.springframework.orm.hibernate4.HibernateTransactionManager{

	/** （非 Javadoc）
	 * <p>Title: setAutodetectDataSource</p>
	 * <p>Description: </p>
	 * @param autodetectDataSource
	 * @see org.springframework.orm.hibernate4.HibernateTransactionManager#setAutodetectDataSource(boolean)
	 */
	@Override
	public void setAutodetectDataSource(boolean autodetectDataSource) {
		super.setAutodetectDataSource(autodetectDataSource);
	}

	/** （非 Javadoc）
	 * <p>Title: doGetTransaction</p>
	 * <p>Description: </p>
	 * @return
	 * @see org.springframework.orm.hibernate4.HibernateTransactionManager#doGetTransaction()
	 */
	@Override
	protected Object doGetTransaction() {
		return super.doGetTransaction();
	}

	/** （非 Javadoc）
	 * <p>Title: doBegin</p>
	 * <p>Description: </p>
	 * @param transaction
	 * @param definition
	 * @see org.springframework.orm.hibernate4.HibernateTransactionManager#doBegin(java.lang.Object, org.springframework.transaction.TransactionDefinition)
	 */
	@Override
	protected void doBegin(Object transaction, TransactionDefinition definition) {
		super.doBegin(transaction, definition);
	}

	/** （非 Javadoc）
	 * <p>Title: doCommit</p>
	 * <p>Description: </p>
	 * @param status
	 * @see org.springframework.orm.hibernate4.HibernateTransactionManager#doCommit(org.springframework.transaction.support.DefaultTransactionStatus)
	 */
	@Override
	protected void doCommit(DefaultTransactionStatus status) {
		super.doCommit(status);
	}

	/** （非 Javadoc）
	 * <p>Title: newTransactionStatus</p>
	 * <p>Description: </p>
	 * @param definition
	 * @param transaction
	 * @param newTransaction
	 * @param newSynchronization
	 * @param debug
	 * @param suspendedResources
	 * @return
	 * @see org.springframework.transaction.support.AbstractPlatformTransactionManager#newTransactionStatus(org.springframework.transaction.TransactionDefinition, java.lang.Object, boolean, boolean, boolean, java.lang.Object)
	 */
	@Override
	protected DefaultTransactionStatus newTransactionStatus(
			TransactionDefinition definition, Object transaction,
			boolean newTransaction, boolean newSynchronization, boolean debug,
			Object suspendedResources) {
		return super.newTransactionStatus(definition, transaction, newTransaction,
				newSynchronization, debug, suspendedResources);
	}

}
